﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FinceTest
{
    class FactorTest
    {
        static void Main(string[] args)
        {
            uint a = Convert.ToUInt32(Console.ReadLine());
            uint b = Convert.ToUInt32(Console.ReadLine());

            Console.WriteLine("GCD:" + Fince.Factor.GCD(a, b));
            Console.WriteLine("LCM:" + Fince.Factor.LCM(a, b));

            Console.ReadKey();
        }
    }
}
